package indi.onem.three.class_objects;

public class Snippet {
	public void moveCircle(Circle1 circle, int deltaX, int deltaY) {
		// code to move origin of circle to x+deltaX, y+deltaY
		circle.setX(circle.getX() + deltaX);
		circle.setY(circle.getY() + deltaY);

		// code to assign a new reference to circle
		
	}
	public static void main(String[] args) {
		Circle1 circle = new Circle1();
		
		System.out.println(circle.getX() + ":" + circle.getX());
		
		
		Snippet snippet = new Snippet();
		snippet.moveCircle(circle, 100,50);
		System.out.println(circle.getX());
		System.out.println(circle.getY());
		
	}
}

class Circle1{
	
	private  int deltaX=100;
	private int deltaY=100 ;
	
	public Circle1(){}
	
	public Circle1(int deltaX, int deltaY) {
		super();
		this.deltaX = deltaX;
		this.deltaY = deltaY;
	}
	public int getX() {
		return deltaX;
	}
	public void setX(int deltaX) {
		this.deltaX = deltaX;
	}
	public int getY() {
		return deltaY;
	}
	public void setY(int deltaY) {
		this.deltaY = deltaY;
	}




}